function OnTipoEquipoChange(dropdown)
{
  	document.getElementById('divCpu').style.display = 
  		(dropdown.value == 'Cpu' ? 'block' : 'none');
  	document.getElementById('divMonitor').style.display = 
  		(dropdown.value == 'Monitor' ? 'block' : 'none');
  	document.getElementById('divImpresora').style.display = 
  		(dropdown.value == 'Impresora' ? 'block' : 'none');
  	document.getElementById('divUps').style.display = 
  		(dropdown.value == 'Ups' ? 'block' : 'none');
}

function submitForm()
{
	submitForm('', '');
}
		
function submitForm(accion)
{
	submitForm(accion, '');
}

function submitForm(accion, itemSeleccionado)
{
	var myHiddenfield = document.getElementById("accionSeleccionada");
	myHiddenfield.value = accion;
	
	var myHiddenfield2 = document.getElementById("itemSeleccionado");
	myHiddenfield2.value = itemSeleccionado;
	
  	document.form.submit();
}

